﻿<Window x:Class="WPF.RoutingEvents.Layout_Example"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Layout_Example" Height="300" Width="300">
    <Grid>
        <!--This is automatic-->
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="4*"/> <!--4 times height / propotional -->
            <RowDefinition Height="40"/> <!--fixed size-->
        </Grid.RowDefinitions>
        <!--This is automatic-->


        <Button Grid.Column="0" Grid.Row="0" Content="Ok"/>
        <Button Grid.Column="0" Grid.Row="1" Content="Ok"/>
        <Button Grid.Column="0" Grid.Row="2" Content="Ok"/>

        <Button Grid.Column="1" Grid.Row="0" Content="Ok"/>
        <Button Grid.Column="1" Grid.Row="1" Content="Ok"/>
        <Button Grid.Column="1" Grid.Row="2" Content="Ok"/>

        <Button Grid.Column="2" Grid.Row="0" Content="Ok"/>
        <Button Grid.Column="2" Grid.Row="1" Content="Ok"/>
        <Button Grid.Column="2" Grid.Row="2" Content="Ok"/>


    </Grid>
</Window>
